 <g:if test="${flash.message}">
   <div class="message">${flash.message}</div>
 </g:if>
<h2 class="pretoMaior">PlayList</h2>


            <div class="listmaior">
                <table>
                    <tbody>
                    <g:each in="${playList}" status="i" var="musicaInstance">

						<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
							
							<td style="width:40px">
								<g:remoteLink controller="home" action="escolheMusica" params="[musicaInstance.id]" id="${musicaInstance.id}" update="video">
								<img id="fotoMusica0" width="40px" height="40px" class="fotoMusica" 
										src="http://i2.ytimg.com/vi/${fieldValue(bean: musicaInstance, field: "url")}/default.jpg"></g:remoteLink>
							</td>
							
                            	<td><b>${fieldValue(bean: musicaInstance, field: "compositor")} - ${fieldValue(bean: musicaInstance, field: "titulo")}</b>
									<br />
									<br />
										<span><g:remoteLink controller="avaliacao" action="saveAvaliacaoMusica" params="[legal:'true']" id="${musicaInstance.id}" update="playlist">
												<img src="${resource(dir:'images',file:'legal.jpg')}" /></g:remoteLink></span>
												
										<span><g:remoteLink controller="avaliacao" action="saveAvaliacaoMusica" params="[legal:'false']" id="${musicaInstance.id}" update="playlist">
													<img src="${resource(dir:'images',file:'chato.jpg')}" /></g:remoteLink></span>
										
										<span><g:remoteLink controller="home" action="deletaMusica" id="${musicaInstance.id}" params="[musicaInstance.id]" update="playlist">
															<img src="${resource(dir:'images',file:'xis.jpg')}" /></g:remoteLink></span>
									
										
								
								</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>